Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds ability to provide a OSLog instance via the Config.logger property #78

Merged
merged 2 commits into from
May 31, 2024

Conversation

tanderson-ld
Copy link
Contributor

Related issues

SC-245493

Describe the solution you've provided

Added Config.logger property that is only available on platforms supporting OSLog.

Describe alternatives you've considered

Creating a LD specific protocol for logging and exposing that. Customer's would then have to implement an adapter for this. This was rejected as adding more logging flavors to the ecosystem is probably a worse outcome.

Additional context

Logging was previously a no-op on Linux and Windows, and that continues to be the case.

@tanderson-ld tanderson-ld requested review from keelerm84 and a team May 30, 2024 20:14
/// Additional HTTP headers to be set on the request
public var headers: [String: String] = [:]
/// Transform function to allow dynamically configuring the headers on each API request.
public var headerTransform: HeaderTransform = { $0 }
/// An initial value for the last-event-id header to be sent on the initial request
public var lastEventId: String = ""
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: just reordering a bit for something closer to alphabetization.

@tanderson-ld tanderson-ld removed the request for review from keelerm84 May 30, 2024 20:18
@tanderson-ld tanderson-ld requested a review from keelerm84 May 30, 2024 21:40
@tanderson-ld tanderson-ld merged commit 2220929 into main May 31, 2024
14 checks passed
@tanderson-ld tanderson-ld deleted the ta/sc-245493/support-providing-logger branch May 31, 2024 14:14
tanderson-ld added a commit that referenced this pull request May 31, 2024
🤖 I have created a release *beep* *boop*
---


##
[3.3.0](3.2.0...3.3.0)
(2024-05-31)


### Features

* adds ability to provide a OSLog instance via the Config.logger
property
([c10ec29](c10ec29))
* adds ability to provide a OSLog instance via the Config.logger
property
([#78](#78))
([2220929](2220929))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants